import request from '@/utils/request'
export function getTaskExamList(data) {
    // 获取任务列表
    return request({
        url: '/task-exam/getPageList',
        method: 'post',
        data
    })
}

export function addTaskExam(data) {
    // 添加任务
    return request({
        url: '/task-exam/save',
        method: 'post',
        data
    })
}

export function editTaskExam(data) {
    // 修改任务
    return request({
        url: '/task-exam/update',
        method: 'post',
        data
    })
}

export function deleteTaskExam(data) {
    // 删除任务
    return request({
        url: '/task-exam/delete',
        method: 'post',
        data
    })
}

export function detailTaskExam(id) {
    // 任务详情
    return request({
        url: `/task-exam/select/${id}`,
        method: 'post'
    })
}

export function getAnswerPaper(id) {
    //获取认证页面的地址
    return request({
        url: `/exam-paper-answer/read/${id}`,
        method: 'post'
    })
}


export function answerSubmit(data) {
    //获取认证页面的地址
    return request({
        url: `/exam-paper-answer/answerSubmit`,
        method: 'post',
        data
    })
}